package com.xzj.admin.auth;

import com.xzj.common.core.constants.LogConstants;
import org.slf4j.MDC;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @program: xzj-admin
 * @ClassName: AdminAuthApp
 * @description: 认证服务
 * @author: XiaZunJun
 * @create: 2024-06-27 16:06
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.xzj")
public class AdminAuthApp{

    public static void main(String[] args) {
        if (MDC.get(LogConstants.TRACE_ID) == null) {
            MDC.put(LogConstants.TRACE_ID, "ADMIN-AUTH-APP-RUN-TRACE-ID");
        }
        SpringApplication.run(AdminAuthApp.class,args);
    }
}
